//
// Created by zhp on 2025/7/17.
//
#include <iostream>

void print_array(char a[], int length);

void arrays_init();

void print_array2(const char a[]);

using namespace std;

int main() {
    char a[3]{};
    int size = sizeof(a) / sizeof(a[0]);
    print_array(a, size);
}

void arryas_init() {

    // 数组初始化

    // 空字符串
    char a[3]{};
    // 默认都是0
    unsigned int b[10]{};

    char c[2] = {'1', '2'};
    char d[2]{'1', '2'};
}

void print_array(char a[], int length) {
    for (int i = 0; i < length; ++i) {
        cout << a[i] << " -" << endl;
    }

}
